<?php
$serv = new swoole_http_server("0.0.0.0", 9501);
$serv->on("request", function($request, $response) {
    var_dump($response);
    $response->header("Content-Type", "text/html;charset=UTF-8");
    $response->end("hello world" . rand(100, 999));
});
$serv->start();